import type { ReturnResult } from '@/types/http';
import { LoginUser } from '@/types/store';
import { ramHttpPost } from '@/utils/http';

/**
 * @function doAccountLogin
 * @description 使用账号密码进行登录
 */
export function doAccountLogin(username: string, password: string) {
  return ramHttpPost<ReturnResult<Partial<LoginUser>>>({
    url: '/ram/admin-user/login',
    params: { username, password },
  });
}
